<?php

include ("./src/jpgraph.php");
include ("./src/jpgraph_pie.php");

$data=array("1","7","2","3","306");

$lbl=array("Cl. UNCERTAIN (melanosclerites--Scyphozoa or Hy....\n%.1f%%","Cl. SCYPHOZOA\n%.1f%%","Cl. HYDROZOA\n%.1f%%","Cl. MEDUSAE INCERTAE SEDIS\n%.1f%%","Cl. ANTHOZOA\n%.1f%%");



$graph = new PieGraph(950,550,"auto");
$graph->SetShadow();

$graph->title->Set(" Pie plot");

$p1 = new PiePlot($data);
$p1->SetSize(0.4);
$p1->SetCenter(0.5,0.52);
//$p1->SetLegends($gDateLocale->GetShortMonth());
$p1->SetLabels($lbl);
$p1->value->SetFont(FF_FONT1,FS_NORMAL,1); 
$graph->Add($p1);

$graph->Stroke();
?>